package com.blog.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

/**
 * @Description:T0D0
 * @Author XieLiKui
 * @Date 2021/10/15
 **/

public class Comment {
    int id;
    private Date time;
    String content;
    int approve;

    public Comment(Date time, String content, int approve) {
        this.time = time;
        this.content = content;
        this.approve = approve;
    }
    public Comment() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getTime() {
        return this.time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getApprove() {
        return approve;
    }

    public void setApprove(int approve) {
        this.approve = approve;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", time=" + time +
                ", content='" + content + '\'' +
                ", approve=" + approve +
                '}';
    }
}
